User Defined Function To Find Minimum Element